#include <stdio.h>
#include <assert.h>
#include <math.h>
#include "vector.h"

void multi_add(double a, VECTOR A, VECTOR *B, double *Norm)
{
	assert((B->parent->x == A.x) && (B->parent->y == A.y));
	B->x += a * A.x;
	B->y += a * A.y;
	*Norm = sqrt(B->x * B->x + B->y * B->y);
}
